package test_package_info;

import java.lang.annotation.Annotation;

/**
 * @author zhouzhi
 * @version 1.0
 * @description s
 * @classname Client
 * @create 2018/12/8 12:35
 */
public class Client {
    public static void main(String[] args) {
        //可以通过I/O操作或配置项获得包名
        String pkgName = "test_package_info";
        Package pkg = Package.getPackage(pkgName);

        //获得包上的注解
        Annotation[] annotations = pkg.getAnnotations();
        //遍历注解数组
        for(Annotation an:annotations){
          //  System.out.println(an.toString());
            if(an instanceof PkgAnnotation){
                System.out.println("Hi,I'm the PkgAnnotation");
            }
        }

        System.out.println(PkgConst.PACAKGE_CONST);

        PkgClass.test();

    }

}
